The condition was checking for PROVIDE_USERNAME specifically, but
should also handle REUSE_USERNAME. Check for not DONT_PROVIDE_USERNAME
instead to correctly reuse the username when requested.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4306>
(cherry picked from commit
2cb0627a467f2057c28bda57b6858ef04a7ddb55)
_onReset(authPrompt, beginRequest) {
let userName;
- if (beginRequest === AuthPrompt.BeginRequestType.PROVIDE_USERNAME) {
+ if (beginRequest !== AuthPrompt.BeginRequestType.DONT_PROVIDE_USERNAME) {
this._authPrompt.setUser(this._user);
userName = this._userName;
} else {